#pragma once

#define QRC_QSS(x) (":/Resources/QSS/" + (x) + ".css")

#define INI_PATH(x) (QApplication::applicationDirPath() + "/ini/" + (x))

#define APP_ICON(x) (":/Resources/MainWindow/app/" + (x) + ".png")

#define GROUP_ID_LENGTH 4

#define EMO_PATH(x) (":/Resources/MainWindow/emotion/" + (x) + ".png")

#define HTML_PATH(x) (QString(":/Resources/MainWindow/MsgHtml/") + QString(x) + ".html")


#define IMG_SRC "<img src = '%1'/>"
#define IMG_QRC "qrc:/Resources/MainWindow/emotion/"
#define IMG_PNG ".png"

#define MSG_LENGTH 2048

#define IMG "img"
#define TXT "txt"
#define BR "<br>"

#define MYSELF "0"

#define TYPE "type"
#define TYPE_GROUP "0"
#define TYPE_SINGLE "1"
#define SEND "send"
#define RECV "recv"
#define WHAT "what"
#define WHAT_MSG "msg"
#define WHAT_FILE "file"

#define FILE_NAME "name"
#define FILE_LENGTH "len"
#define FILE_CONTENT "content"

enum ButtonType
{
	MIN_CLOSE_BUTTON = 0,
	MIN_MAX_CLOSE_BUTTON,
	ONLY_CLOSE_BUTTON,
	ALL_BUTTONS
};
